Optimal. Leaf size=102 \[ -2 e^{-a-b x}-3 a e^{-a-b x}-3 a^2 e^{-a-b x}-2 b e^{-a-b x} x-3 a b e^{-a-b x} x-b^2 e^{-a-b x} x^2+a^3 e^{-a} \text {Ei}(-b x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2230, 2225,
2209, 2207} \begin {gather*} e^{-a} a^3 \text {Ei}(-b x)-3 a^2 e^{-a-b x}-b^2 x^2 e^{-a-b x}-3 a e^{-a-b x}-3 a b x e^{-a-b x}-2 e^{-a-b x}-2 b x e^{-a-b x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2207
Rule 2209
Rule 2225
Rule 2230
Rubi steps
\begin {align*} \int \frac {e^{-a-b x} (a+b x)^3}{x} \, dx &=\int \left (3 a^2 b e^{-a-b x}+\frac {a^3 e^{-a-b x}}{x}+3 a b^2 e^{-a-b x} x+b^3 e^{-a-b x} x^2\right ) \, dx\\ &=a^3 \int \frac {e^{-a-b x}}{x} \, dx+\left (3 a^2 b\right ) \int e^{-a-b x} \, dx+\left (3 a b^2\right ) \int e^{-a-b x} x \, dx+b^3 \int e^{-a-b x} x^2 \, dx\\ &=-3 a^2 e^{-a-b x}-3 a b e^{-a-b x} x-b^2 e^{-a-b x} x^2+a^3 e^{-a} \text {Ei}(-b x)+(3 a b) \int e^{-a-b x} \, dx+\left (2 b^2\right ) \int e^{-a-b x} x \, dx\\ &=-3 a e^{-a-b x}-3 a^2 e^{-a-b x}-2 b e^{-a-b x} x-3 a b e^{-a-b x} x-b^2 e^{-a-b x} x^2+a^3 e^{-a} \text {Ei}(-b x)+(2 b) \int e^{-a-b x} \, dx\\ &=-2 e^{-a-b x}-3 a e^{-a-b x}-3 a^2 e^{-a-b x}-2 b e^{-a-b x} x-3 a b e^{-a-b x} x-b^2 e^{-a-b x} x^2+a^3 e^{-a} \text {Ei}(-b x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 52, normalized size = 0.51 \begin {gather*} e^{-a-b x} \left (-2-3 a^2-2 b x-b^2 x^2-3 a (1+b x)+a^3 e^{b x} \text {Ei}(-b x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 113, normalized size = 1.11
method | result | size |
meijerg | \({\mathrm e}^{-a} \left (2-\frac {\left (3 b^{2} x^{2}+6 b x +6\right ) {\mathrm e}^{-b x}}{3}\right )+3 \,{\mathrm e}^{-a} a \left (1-\frac {\left (2 b x +2\right ) {\mathrm e}^{-b x}}{2}\right )+3 \,{\mathrm e}^{-a} a^{2} \left (1-{\mathrm e}^{-b x}\right )+{\mathrm e}^{-a} a^{3} \left (-\ln \left (b x \right )-\expIntegral \left (1, b x \right )+\ln \left (x \right )+\ln \left (b \right )\right )\) | \(96\) |
risch | \(-2 a^{2} {\mathrm e}^{-b x -a}-a b \,{\mathrm e}^{-b x -a} x -a \,{\mathrm e}^{-b x -a}-\left (-b x -a \right )^{2} {\mathrm e}^{-b x -a}+2 \left (-b x -a \right ) {\mathrm e}^{-b x -a}-2 \,{\mathrm e}^{-b x -a}-a^{3} {\mathrm e}^{-a} \expIntegral \left (1, b x \right )\) | \(107\) |
derivativedivides | \(-a^{2} {\mathrm e}^{-b x -a}+a \left (\left (-b x -a \right ) {\mathrm e}^{-b x -a}-{\mathrm e}^{-b x -a}\right )-\left (-b x -a \right )^{2} {\mathrm e}^{-b x -a}+2 \left (-b x -a \right ) {\mathrm e}^{-b x -a}-2 \,{\mathrm e}^{-b x -a}-a^{3} {\mathrm e}^{-a} \expIntegral \left (1, b x \right )\) | \(113\) |
default | \(-a^{2} {\mathrm e}^{-b x -a}+a \left (\left (-b x -a \right ) {\mathrm e}^{-b x -a}-{\mathrm e}^{-b x -a}\right )-\left (-b x -a \right )^{2} {\mathrm e}^{-b x -a}+2 \left (-b x -a \right ) {\mathrm e}^{-b x -a}-2 \,{\mathrm e}^{-b x -a}-a^{3} {\mathrm e}^{-a} \expIntegral \left (1, b x \right )\) | \(113\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.34, size = 69, normalized size = 0.68 \begin {gather*} a^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - 3 \, {\left (b x + 1\right )} a e^{\left (-b x - a\right )} - 3 \, a^{2} e^{\left (-b x - a\right )} - {\left (b^{2} x^{2} + 2 \, b x + 2\right )} e^{\left (-b x - a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 50, normalized size = 0.49 \begin {gather*} a^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - {\left (b^{2} x^{2} + {\left (3 \, a + 2\right )} b x + 3 \, a^{2} + 3 \, a + 2\right )} e^{\left (-b x - a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 4.83, size = 70, normalized size = 0.69 \begin {gather*} \left (a^{3} \operatorname {Ei}{\left (- b x \right )} - 3 a^{2} e^{- b x} - 3 a \left (b x e^{- b x} + e^{- b x}\right ) - b^{2} x^{2} e^{- b x} - 2 b x e^{- b x} - 2 e^{- b x}\right ) e^{- a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.72, size = 95, normalized size = 0.93 \begin {gather*} -b^{2} x^{2} e^{\left (-b x - a\right )} + a^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - 3 \, a b x e^{\left (-b x - a\right )} - 3 \, a^{2} e^{\left (-b x - a\right )} - 2 \, b x e^{\left (-b x - a\right )} - 3 \, a e^{\left (-b x - a\right )} - 2 \, e^{\left (-b x - a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.56, size = 69, normalized size = 0.68 \begin {gather*} -{\mathrm {e}}^{-a-b\,x}\,\left (b^2\,x^2+2\,b\,x+2\right )-3\,a^2\,{\mathrm {e}}^{-a-b\,x}-3\,a\,{\mathrm {e}}^{-a-b\,x}\,\left (b\,x+1\right )-a^3\,{\mathrm {e}}^{-a}\,\mathrm {expint}\left (b\,x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________